package com.SunSoft.PhoneRemoteControl;

import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.widget.TextView;
import android.widget.Toast;
import com.tasogo.comm.b;
import com.tasogo.comm.g;

final class bc
  implements DialogInterface.OnClickListener
{
  public final void onClick(DialogInterface paramDialogInterface, int paramInt)
  {
    paramDialogInterface.dismiss();
    if (MainControl.b(this.a) != paramInt)
    {
      MainControl.f(this.a, paramInt);
      MainControl.d(this.a).a("save_device", String.valueOf(MainControl.b(this.a)));
      this.a.aS.setText(MainControl.w(this.a)[MainControl.b(this.a)]);
      if (MainControl.b(this.a) <= 0);
    }
    while (true)
      try
      {
        if (MainControl.b(this.a) == 3)
        {
          MainControl.a(new g());
          MainControl.a(this.a);
          if (MainControl.b(this.a) > 0)
          {
            if (!(MainControl.c(this.a)))
              break label175;
            Toast.makeText(this.a, this.a.getString(2131099861), 0).show();
          }
          return;
        }
        label175: MainControl.a(new b());
      }
      catch (java.lang.NoClassDefFoundError paramDialogInterface)
      {
        while (true)
          MainControl.x(this.a);
        Toast.makeText(this.a, this.a.getString(2131099860), 0).show();
      }
  }
}